package org.cfx.gift.client.fallback;

import feign.hystrix.FallbackFactory;
import org.cfx.gift.client.AuthClient;
import org.cfx.gift.domain.LoginUser;
import org.cfx.gift.util.AjaxResult;
import org.springframework.stereotype.Component;

/**
 * @author RTX 9090
 */
@Component
public class AuthClientFallBack implements AuthClient {
    @Override
    public AjaxResult addOrUpdate(LoginUser loginUser) {
        return new AjaxResult().setSuccess(false).setMessage("服务故障").setCode(1620);
    }
    @Override
    public AjaxResult get(String username) {
        return new AjaxResult().setSuccess(false).setMessage("服务故障").setCode(1630);
    }
}
